
<link  href="/stylesheets/tests.css" type="text/css" rel="stylesheet" media="screen">
  <style type="text/css" rel="stylesheet">
    form {
        margin: 0;
        }
        .editor {
        margin-top: 5px;
        margin-bottom: 5px;
        }
        .ke-content {
        font-family: Courier New;
        font-size: 12px;
        background-color: #ffffff;
    }

  </style>
  
<br/>
<p class="smallNav">
  <%= link_to "倾向测试管理", :action => "index"  %>>>
  <%= link_to "编辑测试", :action => "edit", :id => @dimen.survey  %>>>
  编辑倾向
</p>

<% form_for :dimen, :url => {:action => "update_dimen"} do |f| %>
  <%= hidden_field_tag "id", @dimen.id %>
  <p>
    倾向:&nbsp;<%= f.text_field :name %>&nbsp;
    <%=link_to '删除' ,:action=>"del_dimen" ,:id=>@dimen.id%>
    <br/><br/>
    说明：&nbsp;&nbsp;<br/>
    <%=f.text_area :description ,:style=>"width:500px;height:160px;"%>
    <br />
  </p>
  <p>
    建议：<br/>
    <%=f.text_area :formula ,:style=>"width:500px;height:160px;"%>
  </p>
    <br/><br/>

    <br /></br>
    该维度包含题目：
  </p>
  <div style="margin: 20px 0 20px 20px">
    <% for question in @questions %>
      <%= check_box_tag "dimen[question_ids][]", question.id, @dimen.questions.include?(question) %>
      第<%= @questions.index(question) + 1 %>题.
      <%= question.description %><br/>
    <% end %>
  </div>
  <%= f.submit "提交" %>
<% end %>

